package cn.wolfcode.luowowo.mgrsite.controller;

import cn.wolfcode.luowowo.comment.query.StrategyCommentQuery;
import cn.wolfcode.luowowo.comment.service.IStrategyCommentService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("customerReport")
public class StrateryCommentController {

    @Reference
    private IStrategyCommentService strategyCommentService;

    @RequestMapping("list")
    public Object list(@ModelAttribute("qo") StrategyCommentQuery qo, Model model){
        Page page = strategyCommentService.query(qo);
        model.addAttribute("page", page);
        return "travel/list";
    }
}
